package com.seven.commons;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.metadata.BaseRowModel;
import lombok.Data;

import java.util.Date;

/**
 * @工程名:common-utils
 * @author: sevenDay
 * @时间: 2019/1/4 10:28
 * @描述:
 * 姓名       学号          年龄	时间
 * seven	no201096064049	28	2017/8/1
 */
@Data
public class StudentExcel extends BaseRowModel {

    @ExcelProperty(value = "姓名",index = 0)
    private String userName;

    @ExcelProperty(value = "学号",index = 1)
    private String studentNo;

    @ExcelProperty(value = "年龄",index = 2)
    private Integer age;

    @ExcelProperty(value = "出生日期",index = 3,format = "yyyy-MM-dd HH:mm:ss")
    private Date date;
}
